package com.pswv2.bub.bsc.dao.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.pswv2.core.PO;
/**
 * 用户
 * @author linjiang
 *
 */
@Entity
@Table
public class UserRequirements extends PO {
	public static final Integer complex = 2;
	public static final Integer mesne = 1;
	public static final Integer easy = 0;
	public static final Integer paid = 0;
	public static final Integer no_paid =1;
	public static final Integer status_wait = 0;
	public static final Integer status_pass = 1;
	public static final Integer status_reject = 2;
	public static final Integer status_answer = 3;
	public static final Integer status_closing_a_case = 4;
	public static final Integer status_obsolete_closing_a_case = 5;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(unique = true, nullable = false)
	private Integer userRequirementsId; 		//需求Id
	private Integer userId; 					//用户是谁
	private String kWord;						//关键字
	private String content; 					//需求内容
	private Integer	 level; 					//复杂度
	private Integer fulfilTime; 				//结案时间
	private double price;						//每一个的定价价格
	private double points;							//积分
	private double totalPrice;					//总价的定价价格
	private double totalPoints;					//总价的定价价格
	private String publishingAddress;		    //发布地址
	private Integer categoryId;		   			//分类
	private Integer territoryId;		   		//领域
	private Integer territory2Id;		   		//领域
	private Integer status;		   				//是否通过0待审核，1已审核，2驳回，3已有回答，4已结案，5过时结案
	private Integer solveStatus;		   		//是否解决
	private Integer pidStatus;		   			//是否支付
	private long releaseTime;		   			//发布时间
	private int userUserRequirementsId;		   	//拥有它的用户
	private String method;		  				 //方法
	private String term1;		   				//条件1
	private String term2;		   				//条件2
	
	@Override
	public Serializable getId() {
		return userRequirementsId;
	}
	public Integer getUserRequirementsId() {
		return userRequirementsId;
	}
	public void setUserRequirementsId(Integer userRequirementsId) {
		this.userRequirementsId = userRequirementsId;
	}
	
	public double getTotalPoints() {
		return totalPoints;
	}
	public void setTotalPoints(double totalPoints) {
		this.totalPoints = totalPoints;
	}
	public double getPoints() {
		return points;
	}
	public void setPoints(double points) {
		this.points = points;
	}
	public Integer getPidStatus() {
		return pidStatus;
	}
	public void setPidStatus(Integer pidStatus) {
		this.pidStatus = pidStatus;
	}
	public Integer getSolveStatus() {
		return solveStatus;
	}
	public void setSolveStatus(Integer solveStatus) {
		this.solveStatus = solveStatus;
	}
	public Integer getTerritoryId() {
		return territoryId;
	}
	public void setTerritoryId(Integer territoryId) {
		this.territoryId = territoryId;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getkWord() {
		return kWord;
	}
	public void setkWord(String kWord) {
		this.kWord = kWord;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public Integer getFulfilTime() {
		return fulfilTime;
	}
	public void setFulfilTime(Integer fulfilTime) {
		this.fulfilTime = fulfilTime;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getPublishingAddress() {
		return publishingAddress;
	}
	public void setPublishingAddress(String publishingAddress) {
		this.publishingAddress = publishingAddress;
	}
	public Integer getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public long getReleaseTime() {
		return releaseTime;
	}
	public void setReleaseTime(long releaseTime) {
		this.releaseTime = releaseTime;
	}
	public int getUserUserRequirementsId() {
		return userUserRequirementsId;
	}
	public void setUserUserRequirementsId(int userUserRequirementsId) {
		this.userUserRequirementsId = userUserRequirementsId;
	}
	public double getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public String getTerm1() {
		return term1;
	}
	public void setTerm1(String term1) {
		this.term1 = term1;
	}
	public String getTerm2() {
		return term2;
	}
	public void setTerm2(String term2) {
		this.term2 = term2;
	}
	public Integer getTerritory2Id() {
		return territory2Id;
	}
	public void setTerritory2Id(Integer territory2Id) {
		this.territory2Id = territory2Id;
	}
	
	
}
